package gemini.castor.ui.client.page.content.store.shoppingcart.shoppingcartview;

import com.google.gwt.event.shared.GwtEvent;

/**
 * The event collections of internal widget for screen uk 1-21.010-a
 */
public class CartViewEvent extends GwtEvent<CartViewHandler> {

	private static Type<CartViewHandler> TYPE;

	public static Type<CartViewHandler> getType() {
		if (TYPE == null)
			TYPE = new Type<CartViewHandler>();
		return TYPE;
	}

	@Override
	protected void dispatch(CartViewHandler handler) {
		handler.onCheckOut(this);
	}

	@Override
	public Type<CartViewHandler> getAssociatedType() {
		return getType();
	}
}
